﻿<Page x:Class="PTCScheduler.EditMenu_Pages.UpdateConference_Page"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="480" d:DesignWidth="825"
	Title="Update Conference">

    <Grid>
        <Grid>
            <Grid>
                <Grid Style="{StaticResource PageStyle}">
                    <Label Content="Teacher Name:" Height="28" HorizontalAlignment="Left" Margin="32,53,0,0" Name="lblStudentFName" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Width="107" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="140,53,0,0" Name="txtTeacherName" VerticalAlignment="Top" Width="152" IsReadOnly="True" OpacityMask="White" Background="#12FF6347" />
                    <Label Content="Student Name:" Height="28" HorizontalAlignment="Left" Margin="30,80,0,0" Name="lblStudentName" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="140,80,0,0" Name="txtStudentName" VerticalAlignment="Top" Width="152" IsReadOnly="True" Background="#FFCDDDE7" />
                    <Label Content="Date:" Height="28" HorizontalAlignment="Left" Margin="24,173,0,0" Name="lblEmail" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" />
                    <TextBlock Background="CornflowerBlue" FontFamily="Arial" FontSize="12" FontStretch="Normal" FontWeight="Bold" Foreground="White" Height="47" HorizontalAlignment="Left" Name="textBlock1" Text="Please select conference to edit from table on right. Edit information and click update button when done." TextTrimming="None" TextWrapping="Wrap" VerticalAlignment="Top" Width="306" Style="{StaticResource InstructionsStyle}" />
                    <Label Content="Time:" HorizontalAlignment="Left" Margin="24,394,0,0" Name="lblTime" Style="{StaticResource LabelStyle}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="24,417,0,0" Name="txtTime" VerticalAlignment="Top" Width="115" MaxLength="8" />
                    <CheckBox Content="Counselor Needed" Height="16" HorizontalAlignment="Left" Margin="34,109,0,0" Name="chkCounselor" VerticalAlignment="Top" Checked="chkCounselor_Checked" Unchecked="chkCounselor_Unchecked" FontFamily="Arial" FontWeight="Bold" FontSize="14" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="34,144,0,0" Name="counselorComboBox" VerticalAlignment="Top" Width="248" Visibility="Hidden" Background="White" />
                    <Label Content="Counselor Name:" Height="28" HorizontalAlignment="Left" Margin="30,122,0,0" Name="lblCounselorName" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" Visibility="Hidden" />
                    <Label Content="Location:" HorizontalAlignment="Left" Margin="164,394,0,0" Name="label2" Style="{StaticResource LabelStyle}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="164,417,0,0" Name="txtLocation" VerticalAlignment="Top" Width="118" MaxLength="20" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="75,371,0,0" Name="txtDate" VerticalAlignment="Top" Width="207" IsReadOnly="True" Text="Please select date from calendar..." />
                    <Viewbox HorizontalAlignment="Left" VerticalAlignment="Top" Height="205" Width="258" Margin="56,168,0,0">
                        <Calendar Height="169" HorizontalAlignment="Left" Name="calendar" VerticalAlignment="Top" Width="198" SelectedDatesChanged="calendar_SelectedDateChanged" />
                    </Viewbox>
                </Grid>
                <Grid Margin="306,0,0,0" Background="White">
                    <DataGrid Name="dataGridConference"  Style="{StaticResource DataGridViewStyle}"  SelectionChanged="dataGridConference_SelectionChanged" Margin="6,45,21,78"/>
                    <Label Content="Updated Record: " Height="28" HorizontalAlignment="Left" Margin="6,11,0,0" Name="lblUpdatedRecord" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" />
                    <Label Content="Conference has been updated successfully." Foreground="DarkGreen" Height="28" HorizontalAlignment="Left" Margin="139,11,0,0" Name="lblConferenceSuccess" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" />
                    <Label Content="No conferences found." Height="28" HorizontalAlignment="Left" Margin="16,61,0,0" Name="lblNoConferences" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" />
                    <Label Content="Conference has been cancelled successfully." Height="28" HorizontalAlignment="Left" Margin="139,11,0,0" Name="lblConferenceCancelled" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" Foreground="DarkGreen" Visibility="Hidden" />
                    <Label Content="Please check that information is entered correctly." Foreground="Red" Height="28" HorizontalAlignment="Left" Margin="139,11,0,0" Name="lblInformationCheck" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" />
                    <Label Content="Please enter valid time (Example: 03:30 PM)" Foreground="Red" Height="28" HorizontalAlignment="Left" Margin="139,11,0,0" Name="lblValidTime" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" />
                    <Label Content="Please enter a time between 02:00 PM and 06:00 PM." Foreground="Red" Height="28" HorizontalAlignment="Left" Margin="139,11,0,0" Name="lblTimeFrame" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" />
                    <Label Content="Please enter a valid date (Example: 02-May-13)" Foreground="Red" Height="28" HorizontalAlignment="Left" Margin="139,11,0,0" Name="lblValidDate" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" />
                    <Label Content="You must first select a conference to edit!" Foreground="Red" Height="28" HorizontalAlignment="Left" Margin="139,11,0,0" Name="lblNoConferenceSelected" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" />
                    <Label Content="Please Try Again, ensure all information is correct" Foreground="Red" Height="28" HorizontalAlignment="Left" Margin="139,11,0,0" Name="lblSQLiteError" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" />
                    <Label Content="Cannot change to a previous date" Foreground="Red" Height="28" HorizontalAlignment="Left" Margin="139,11,0,0" Name="label3" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" />
                    <Button Content="Cancel" FontSize="14" Height="40" HorizontalAlignment="Left" Margin="130,0,0,32" Name="btnCancel" Style="{StaticResource ButtonStyle}" VerticalAlignment="Bottom" Width="118" Background="Tomato" Click="btnCancel_Click" />
                    <Button Content="Update" FontSize="14" Height="40" HorizontalAlignment="Left" Margin="6,0,0,32" Name="btnUpdate" Style="{StaticResource ButtonStyle}" VerticalAlignment="Bottom" Width="118" Click="btnUpdate_Click" />
                </Grid>
            </Grid>
        </Grid>
    </Grid>
</Page>
